import { createSSRApp } from 'vue';
import App from './App.vue';

import { setupStore } from '@/store';

import design from './design';
import initial from '@/common/initial';

export function createApp() {
    const app = createSSRApp(App);

    // pinia 仓库管理
    setupStore(app);

    app.use(design);
    app.use(initial);

    return {
        app,
    };
}
